/**
 * 2024/01/01 - 2024/12/31
 **/
package com.snail.camunda.engin.errorcode;

import com.snail.starter.commons.error.IErrorCode;
import lombok.Getter;
import lombok.ToString;

/**
 * @author: (zg)
 * @Date: 2024/12/16 16:12
 * @Version: 1.0.0
 */
@Getter
@ToString
public enum CamundaErrorCode implements IErrorCode {

    GROUP_NOT_EXISTS(1, "分组不存在"),
    TENANT_NOT_EXISTS(2, "租户不存在"),
    USER_NOT_EXISTS(3, "用户不存在"),
    ;

    private final Integer code;

    private final String defaultMessage;

    CamundaErrorCode(Integer code, String defaultMessage) {
        this.code = code;
        this.defaultMessage = defaultMessage;
    }

    public Integer getCode() {
        return 30000000 + code;
    }

    @Override
    public String getBundleName() {
        return "camunda";
    }
}
